\connect pcweek;
set datestyle to 'US';

-- load data into database
select 'starting data load' as message, time(CURRENT_TIMESTAMP) as time;
connecting to new database: pcweek
SET VARIABLE
message           |time    
------------------+--------
starting data load|10:54:49
(1 row)


-- load uniques
copy uniques from '/dbimportdata/uniques.dat' using delimiters ',';
select 'finished loading uniques' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading uniques|10:54:51
(1 row)


-- load hundred
copy hundred from '/dbimportdata/hundred.dat' using delimiters ',';
select 'finished loading hundred' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading hundred|10:54:53
(1 row)


-- load tenpct
copy tenpct from '/dbimportdata/tenpct.dat' using delimiters ',';
select 'finished loading tenpct' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                |time    
-----------------------+--------
finished loading tenpct|10:54:55
(1 row)


-- load updates
copy updates from '/dbimportdata/updates.dat' using delimiters ',';
select 'finished loading updates' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading updates|10:54:57
(1 row)


-- load tenthou
copy tenthou from '/dbimportdata/tenthou.dat' using delimiters ',';
select 'finished loading tenthou' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading tenthou|10:54:57
(1 row)


-- load hunthou
copy hunthou from '/dbimportdata/hunthou.dat' using delimiters ',';
select 'finished loading hunthou' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading hunthou|10:54:57
(1 row)


-- load twomill
copy twomill from '/dbimportdata/twomill.dat' using delimiters ',';
select 'finished loading twomill' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading twomill|10:55:01
(1 row)


-- load threemill
copy threemill from '/dbimportdata/threemill.dat' using delimiters ',';
select 'finished loading threemill' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                   |time    
--------------------------+--------
finished loading threemill|10:55:06
(1 row)


-- load fourmill
copy fourmill from '/dbimportdata/fourmill.dat' using delimiters ',';
select 'finished loading fourmill' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                  |time    
-------------------------+--------
finished loading fourmill|10:55:14
(1 row)


-- load fivemill
copy fivemill from '/dbimportdata/fivemill.dat' using delimiters ',';
select 'finished loading fivemill' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                  |time    
-------------------------+--------
finished loading fivemill|10:55:23
(1 row)


-- load fourram
copy fourram from '/dbimportdata/fourram.dat' using delimiters ',';
select 'finished loading fourram' as message, time(CURRENT_TIMESTAMP) as time;
COPY
message                 |time    
------------------------+--------
finished loading fourram|10:56:00
(1 row)


-- finished data load
select 'finished data load' as message, time(CURRENT_TIMESTAMP) as time;
message           |time    
------------------+--------
finished data load|10:56:00
(1 row)


\q
